#include"http.hpp"

int main()
{
    Socket client;
    client.CreatClient("127.0.0.1",8080);
    std::string req("GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n");
    assert(client.Send(req.c_str(),req.size())!=-1);
    char buf[1024];
    assert(client.Recive(&buf,1024)!=-1);
    while(1)
    {}
    return 0;
}